/*
 * jAutomation: Portable input Automation 
 * Copyright (C) 2012 Dominik Hensler.  
 * http://code.google.com/p/jautomation
 * 
 * This Program uses JNativeHook by Alexander Barker:
 * JNativeHook: Global keyboard and mouse hooking for Java.
 * Copyright (C) 2006-2012 Alexander Barker.  All Rights Received.
 * http://code.google.com/p/jnativehook/
 *
 * 
 * This file is part of JAutomation.

 * JAutomation is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.

 * JAutomation is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.

 * You should have received a copy of the GNU General Public License
 * along with JAutomation.  If not, see <http://www.gnu.org/licenses/>.
*/

package org.jautomation.commands;

import java.awt.event.KeyEvent;
import org.jautomation.core.ICommand;
import org.jautomation.core.KeyReceiver;
import org.jautomation.core.MainContext;

/**
 *
 * @author Dominik Hensler
 */
public class ShiftReleaseCommand implements ICommand{
    KeyReceiver _keyReceiver;

    public ShiftReleaseCommand(KeyReceiver keyReceiver){
        this._keyReceiver=keyReceiver;
    }
    
    @Override
    public void execute(MainContext stateInformation) {
        this._keyReceiver.release(Integer.toString(KeyEvent.VK_SHIFT));
    }
    
}